package com.xps.and.yuntong.Ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.xps.and.yuntong.R;
import com.xps.and.yuntong.base.BaseActivity;

/**
 * Created by administrator on 2017-12-12.
 */

public class MoreShezhiActivity extends BaseActivity implements View.OnClickListener {

    private ImageView iv_fanhui, iv_right;
    private TextView tv_middle;
    private RelativeLayout rl_moreshezhi_shofuei,rl_moreshezhi_help,rl_moreshezhi_kefu,rl_moreshezhi_share;


    @Override
    protected int getLayout() {
        return R.layout.activity_more_shezhi;
    }

    @Override
    protected void setData() {

    }

    @Override
    protected void init(Bundle inBundle) {
        initView();
    }

    private void initView() {

        iv_fanhui = (ImageView) findViewById(R.id.iv_fanhui);
        iv_right = (ImageView) findViewById(R.id.iv_right);
        tv_middle = (TextView) findViewById(R.id.tv_middle);
        tv_middle.setText(R.string.more_shezhi);

        rl_moreshezhi_shofuei = (RelativeLayout) findViewById(R.id.rl_moreshezhi_shofuei);
        rl_moreshezhi_help = (RelativeLayout) findViewById(R.id.rl_moreshezhi_help);
        rl_moreshezhi_kefu = (RelativeLayout) findViewById(R.id.rl_moreshezhi_kefu);
        rl_moreshezhi_share = (RelativeLayout) findViewById(R.id.rl_moreshezhi_share);



        iv_fanhui.setOnClickListener(this);
        iv_right.setOnClickListener(this);
        rl_moreshezhi_shofuei.setOnClickListener(this);
        rl_moreshezhi_help.setOnClickListener(this);
        rl_moreshezhi_kefu.setOnClickListener(this);
        rl_moreshezhi_share.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {

        switch (v.getId()) {
            case R.id.iv_fanhui:

                finish();
                break;

            case R.id.iv_right:


                break;
            case R.id.rl_moreshezhi_shofuei:
                Intent intent = new Intent(MoreShezhiActivity.this, ShoufeiBiaozhunActivity.class);
                startActivity(intent);

                break;

            case R.id.rl_moreshezhi_help:
                Intent intent3 = new Intent(MoreShezhiActivity.this, HelpActivity.class);
                startActivity(intent3);

                break;
            case R.id.rl_moreshezhi_kefu:
                Intent intent1 = new Intent(MoreShezhiActivity.this, MoreShezhiKefuActivity.class);
                startActivity(intent1);

                break;
            case R.id.rl_moreshezhi_share:
                Intent intent2 = new Intent(MoreShezhiActivity.this, MoreShezhiFenXiangActivity.class);
                startActivity(intent2);

                break;


        }

    }
}
